package com.hhq.sso.common.constant;

/**
 * <p>
 * Description: some description
 * </p>
 *
 * @author : xiaodong.yang
 * @date : 2024/6/19 15:16
 */
public class TokenConstant {

    public static final String AVATAR = "avatar";
    public static final String HEADER = "auth";
    public static final String BEARER = "bearer";
    public static final String CRYPTO = "crypto";
    public static final String ACCESS_TOKEN = "access_token";
    public static final String REFRESH_TOKEN = "refresh_token";
    public static final String TOKEN_TYPE = "token_type";
    public static final String EXPIRES_IN = "expires_in";
    public static final String ACCOUNT = "account";
    public static final String USER_ID = "user_id";
    public static final String ROLE_ID = "role_id";
    public static final String DEPT_ID = "dept_id";
    public static final String USER_NAME = "user_name";
    public static final String ROLE_NAME = "role_name";
    public static final String TENANT_ID = "tenant_id";
    public static final String OAUTH_ID = "oauth_id";
    public static final String CLIENT_ID = "client_id";
    public static final String LICENSE = "license";
    public static final String LICENSE_NAME = "powered by sso";
    public static final String DEFAULT_AVATAR = "https://gw.alipayobjects.com/zos/rmsportal/BiazfanxmamNRoxxVxka.png";
    public static final Integer AUTH_LENGTH = 7;

    /**
     * token签名
     */
    String SIGN_KEY = "szyhsso";
    /**
     * key安全长度，具体见：https://tools.ietf.org/html/rfc7518#section-3.2
     */
    int SIGN_KEY_LENGTH = 32;
}
